package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @TableName sys_permission
 */
@TableName(value ="sys_permission")
@Data
public class SysPermission implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer permissionId;

    /**
     * 权限字符
     */
    private String permissionCode;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * 父级id
     */
    private Integer fatherId;

    /**
     * 路径
     */
    private String path;

    /**
     * 是否为菜单
     */
    private Integer isMenu;

    /**
     * 图标
     */
    private String permissionIcon;

    /**
     * 状态
     */
    private Integer permissionState;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 菜单类型
     */
    private String permissionType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private List<SysPermission> permissionList;

    @TableField(exist = false)
    private String id;
}